package com.sun;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.view.RedirectView;

@Slf4j
@RestController
@SpringBootApplication
public class SpringBootSsqApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringBootSsqApplication.class, args);
        log.info("*******************启动完成！祝你发大财！*******************");
        log.info("访问主页：http://localhost:8888/index.html");
    }

    @RequestMapping("/")
    public RedirectView index() {
        return new RedirectView("http://localhost:8888/index.html");
    }

}
